﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;

namespace HslCommunicationDemo
{
    public class WRProtocal
    {
        public static void WriteProtocal(string protocalJson)
        {
            string protocalPath = AppDomain.CurrentDomain.BaseDirectory + @"\Protocal.ini";
            File.WriteAllText(protocalPath, protocalJson);
        }

        public static string ReadProtocal()
        {
            string protocalPath = AppDomain.CurrentDomain.BaseDirectory + @"\Protocal.ini";
            return File.ReadAllText(protocalPath);
        }

    }
}
